package com.gexin.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gexin.app.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryMapper extends BaseMapper<Category> {

    List<Category> selectSubCategoriesById(@Param("parentId") Long parentId);

    Category selectCategoryById(@Param("id") Long id);


}
